<?php
/**
 * Description of SitesForm
 *
 * @author FFOZEU
 */
namespace Applications\Modules\Sites\Form;

if( !defined('IN') ) die('Hacking Attempt');

use Library\Classe\Form\Form;

class SitesForm {
    protected $siteform;
    public function __construct($name, $method){
        $this->siteform = new Form($name, $method);
        
        $this->siteform->action('sites.html');
        $this->siteform->add('Text', 'nameSites')
                       ->label('Nom du site')
                       ->required(true);
        
        $this->siteform->add('Date', 'heureOuverture')
                       ->label('Heure d\'ouverture')
                       ->required(false);
        
        $this->siteform->add('Date', 'heureFermeture')
                       ->label('Heure de fermeture')
                       ->required(false);
        
        $this->siteform->add('Email', 'emailServClient')
                       ->label('Email Service Client')
                       ->required(true);
        
        $this->siteform->add('Email', 'emailServTech')
                       ->label('Email Service Technique')
                       ->required(true);
        
        $this->siteform->add('Email', 'emailServReclamation')
                       ->label('Email Service Reclamation')
                       ->required(true);
        
        $this->siteform->add('Email', 'emailPaypal')
                       ->label('Email Service Paypal')
                       ->required(true);
        
        return $this->siteform;
    }
}

?>
